package com.yy.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author young
 * @date 2022/8/17 10:12
 * @description: 实体类
 */
@Data
@Document(collection = "article") //指定对应的文档名（表名）
public class Article implements Serializable{

    private static final long serialVersionUID = 859197576635784085L;
    @Id
    private String id;
    private String title;
    private String description;
    private LocalDateTime timer;
}
